package com.tengju.bff.interfaces.covercharge.constant;



public enum CoverChargeErrorCode implements IErrorEnum {

    /**
     * 参数错误
     */
    PARAM_ERROR(55200000, "参数错误"),
    RESUBMIT(55200001, "重复提交，请重新再试"),
    SYS_ERROR(55200002, "系统错误"),
    BUSINESS_ERROR(55200003, "业务校验异常"),

    BUSINESS_DATA_NULL(55200004, "业务数据为空"),
    BUSINESS_EXCEPTION(55200005, "业务处理异常"),
    BUSINESS_FAIL(55200006, "业务处理失败"),
    DATA_IS_NULL(55200007, "数据不存在"),
    ACC_BUSINESS_EXCEPTION(55200008, "处理账户核心结算异常"),
    SER_BUSINESS_EXCEPTION(55200009, "处理服务费账户结算异常"),
    PROFIT_BUSINESS_EXCEPTION(55200010, "收益结算业务处理异常"),
    EXC_BUSINESS_DEAL_DATA(55200011, "超过业务处理数据量"),


    FORBIDDEN_ACCOUNT_WITHDRAW(55200012, "该账号禁止提现!"),


    ;


    private int code;
    private String msg;

    CoverChargeErrorCode(int code, String msg) {
        this.setCode(code);
        this.setMsg(msg);
    }

    @Override
    public int getCode() {
        return code;
    }

    public void setCode(int code) {
        this.code = code;
    }

    @Override
    public String getMsg() {
        return msg;
    }

    public void setMsg(String msg) {
        this.msg = msg;
    }
}
